<?php
/**
 * @version     1.0.5
 * @package     com_vereadores
 * @copyright   Copyright (C) 2013. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      JORGE EDUARDO DE O LIVEIRA LUCIANO <jeolcavaco@hotmail.com> - http://jorgeeduardo.wordpress.com
 */
// no direct access
defined('_JEXEC') or die;
?>


<div class="container vereadores">
<h3><?php echo $this->escape($this->params->get('page_heading')); ?></h3>

<div id="menuinterno"></div>


<h4><?php echo $this->escape($this->params->get('page_heading')); ?></h4>
<ul class="content">
	<?php foreach ($this->items as $item) : ?>

            
<?php
	if($item->state == 1 || ($item->state == 0 && JFactory::getUser()->authorise('core.edit.own',' com_vereadores.vereador.'.$item->id))):
		$show = true;
		?>
	<li>
		<a href="<?php echo JRoute::_('index.php?option=com_vereadores&view=vereador&id=' . (int)$item->id); ?>" title="<?php echo $item->nome;?>"><?php echo $item->nome; ?> - <?php echo $item->partido; ?> </a> 
	</li>
<?php endif; ?>

<?php endforeach; ?>
</ul>
</div>



